package com.shop.cereshop.admin.param.buyer;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shop.cereshop.commons.domain.common.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "BuyerGetUsersParam", description = "查询所有用户查询参数")
public class BuyerGetUsersParam extends PageParam {

    @ApiModelProperty(value = "用户id搜索关键字")
    private String search;

    @ApiModelProperty(value = "用户封禁状态(0-否，1-是)")
    private Integer state;

    @ApiModelProperty(value = "用户id")
    private Long buyerUserId;

    @ApiModelProperty(value = "流水类型(1-提现，2-充值)")
    private Integer transactionType;

    @ApiModelProperty(value = "单聊禁言状态")
    private Integer privateChatState;

    @ApiModelProperty(value = "群聊禁言状态")
    private Integer groupChatState;

    @ApiModelProperty(value = "禁言时长,最大值表示禁用的时长是100年")
//    @JsonFormat(pattern = "yyyy-MM-dd-HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime banTime;
}
